package com.xmmxjy.service;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

@Service
public class MqReceiveService {

    /**
     * 接收队列消息
     * @param message
     */
    @JmsListener(destination = "test")
    public void receiveQueue(String message) {
        System.out.println(System.currentTimeMillis());
        System.out.println(message);
    }
}
